﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/list.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="hacker-list">
			<input class="search" />
			<ul class="list"></ul>
		</div>
	</body>
</html>
<script type="text/javascript">
var options = {
 	valueNames: ['name', 'city'],
    item: '<li><h3 class="name"></h3><p class="city"></p></li>'
};
var values = [
	    { name: 'a', city:'信息1' }, 
	    { name: 'b', city:'信息2' }
	];
var hackerList = new List('hacker-list', options,values);

hackerList.add( { name: 'Jonas', city:'Berlin' });
</script>